import QtQuick 2.3
import QtQuick.Controls 1.0
Item{
    id: root
    width: 800
    height: 600

    function changeskin(v){
        console.log("changeskin ", v)
        SkinManager.changeskin(v)
    }

    Component.onCompleted: changeskin(0)

    Rectangle{
        anchors.fill: parent
        color: "gray"
    }
    Row{
        z: 1
        Button{
            text: "skin1"
            onClicked: changeskin(0)
        }
        Button{
            text: "skin2"
            onClicked: changeskin(1)
        }
    }
    Loader{
        id: loader
        source: SkinManager.currentSkin
    }
}

